﻿var viewModel = function (my) {
    my.logoName = ko.observable('2');
    my.password = ko.observable('');
    my.isAutoLogoName = ko.observable(false && $.cookies.test());
    my.message = ko.observableArray();

    my.submit = function (formElement) {
        alert(ko.toJSON(this));
        $.post("", ko.toJSON(this), function (returnedData) {
            alert('OK');
        })
    } .bind(my);

    return my;
} (viewModel || {});


$(function () {
    ko.applyBindings(viewModel);
});